package com.wwu.common.exception;

import lombok.Data;

/**
 * 自定义参数异常
 * @author 一蓑烟雨
 * @version 1.0.0
 * @date 2023-06-01 16:19
 */
@Data
public class ParamsException extends  RuntimeException{
    private  Integer code = 300;
    private  String msg = "参数异常!";

    public ParamsException(){
        super("参数异常!");
    }

    public ParamsException(Integer code){
        super("参数异常!");
        this.code = code;
    }

    public ParamsException(String msg){
        super(msg);
        this.msg = msg;
    }
    public ParamsException(Integer code,String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }

}
